package P3;

import P1.Demo;
import P2.Config;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo01 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx=new AnnotationConfigApplicationContext(Config.class);
        Demo demo=ctx.getBean("bean", Demo.class);
        System.out.println(demo);

    }
}
